<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div{
				width: 200px;
				height: 200px;
				border:1px solid;
			}
		</style>
	</head>
	<div>ddd</div>
	<body>
		<script type="text/javascript">
			// var div = document.querySelector('div')
			document.onkeydown = function(e) {
				console.log(e)
			}
			
		</script>
	</body>
</html>
